package com.minivision.fdiot.entity;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;
import java.util.List;

@Entity
@Setter
@Getter
@EntityListeners(AuditingEntityListener.class)
public class AppInfo extends BaseEntity{

    private static final long serialVersionUID = -3759010717244986157L;

    @Column(nullable = false, unique = true)
    @ApiModelProperty(value = "应用名称")
    private String appName;
    
    @Column(nullable = false, unique = true)
    @ApiModelProperty(value = "应用标识")
    private String appKey;
    @Column(nullable = false)
    @ApiModelProperty(value = "应用密钥")
    private String appSecret;

    @Transient
    @ApiModelProperty(value = "人脸库列表")
    private List<FaceSet> faceSets;

}
